package com.qztc.hire_end_dto.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@TableName("comment")
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "汉服评论信息")
public class Comment extends Model<Comment> implements Serializable {
    @Schema(title = "汉服评论id")
    @TableId(value = "comment_id")
    private int commentId;

    @Schema(title = "汉服评论内容")
    @TableField(value = "comment_content")
    private String commentContent;

    @Schema(title = "汉服评论生成日期")
    @TableField(value = "comment_createdate")
    private String commentCreatedate;

    @Schema(title = "汉服id，外键")
    @TableField(value = "hanfu_id")
    private int hanfuId;
}
